package org.example.demo01;

abstract  class pig {
    private String name;
    private int age;
    private double salary;
    public pig(String name,int age,double salary){
        this.name=name;
        this.age=age;
        this.salary=salary;
    }
   abstract public void s01();
  static class pork extends pig{
          public pork(String name,int age,double salary){
              super(name,age,salary);
          }
          @Override
        public void s01(){
              System.out.println("你应该努力工作");
          }
   }
}
